#include "base.h"

/** Prevede cele cislo na retezec.
 * \param d cele cislo
 * \return retezec
 */
std::string IntToStr(int d) {
	char s[20];
	sprintf(s, "%d", d);
	return s;
}

/** Prevede realne cislo na retezec.
 * \param d realne cislo
 * \return retezec
 */
std::string DoubleToStr(double d) {
	std::stringstream ss;
	ss << d;
	return ss.str();
}
